<!DOCTYPE html>
<html>

<head>
	<title>资讯发布</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="../../css/layui.css" media="all">
	<link rel="stylesheet" href="../../style/admin.css" media="all">
</head>
<style>
	::-webkit-scrollbar {
		display: none;
		/* Chrome Safari */
	}

	body {
		width: 100%;
		/* height: 100%; */
		background-color: #f2f2f2;

	}

	.layui-table-cell {
		height: 38px;
		line-height: 36px;
	}

	.container {
		background-color: #ffffff;
		margin: 1.25rem;
		padding: 0.5rem;
		height: 300px;
	}

	.selectpage .layui-form-item {
		display: flex;
		width: 250px;
	}

	.selectpage .layui-input-block .layui-form-item {
		/* width: 200px; */
		/* width: 268px; */
		display: flex;
	}

	.layui-input-block input {
		width: 200px;
	}

	.formdemo {
		display: flex;
	}

	.layui-form-pane .layui-input-block {
		margin-left: 50px;
		/* left: -1px; */
	}

	.styleInput {
		margin-left: -100px;
		width: 200px;
	}

	.labelname {
		width: 150px;
	}

	.layui-upload-choose {
		padding: 37px 10px;
		color: #999;
	}

	.list .layui-select-title input,
	.popupinput {
		width: 300px !important;
		margin-bottom: 20px;
	}
</style>

<body>
	<div class="layui-fluid" style="padding-top: 10px;">
		<div class="layui-card">
			<div class="layui-card-header" style="font-size: 20px">发布资讯</div>
			<div class="layui-card-body" style="padding: 15px;">
				<div class="layui-form addPanel" style="margin-top: 20px;margin-left: 200px;">
					<form class="layui-form addForm" lay-filter="addForm">
						<div class="layui-form-item">
							<div class="layui-inline">
								<label class="layui-form-label">标题：</label>
								<div class="layui-input-inline">
									<input type="text" name="title" placeholder="请输入资讯标题" class="layui-input" style="width: 530px;" />
								</div>
							</div>
						</div>
						<!-- <div class="layui-form-item">
							<label class="layui-form-label">描述：</label>
							<div class="layui-input-inline">
								<input type="text" name="desctiption" placeholder="请输入资讯描述" class="layui-input" style="width: 530px;" />
							</div>
						</div> -->
						<div class="layui-form-item">
							<label class="layui-form-label">正文：</label>
						</div>
						<div class="layui-form-item">
							<div id="editor" style="width: 82%;">
							</div>
						</div>
						<div class="layui-form-item">
							<!-- <label class="layui-form-label">封面：</label>
							<div class="layui-input-block">
								<input type="file" name="image" placeholder="请输入封面url" class="layui-input" style="width: 530px;" />
							</div> -->
							<div class="layui-upload" style="display:flex">
								<button type="button" class="layui-btn" id="uploadImg"
									style="margin-left: 50px;margin-top: 30px;">上传封面</button>
								<div class="layui-upload-list">
									<img class="layui-upload-img" id="img" style="margin-left: 27px;margin-top: -14px;">
									<p id="imgName" style="margin-left: 50px;"></p>
								</div>
							</div>
						</div>

					</form>
					<div class="layui-form-item" style="width: 72%;display: flex;justify-content: center;">
						<div class="layui-input-block">
							<button class="layui-btn post" id="submit">立即提交</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>




	<script src="../../layui.js"></script>
	<script src="../../plugins/vue/vue.min.js"></script>
	<script src="../../plugins/jquery/jquery.min.js"></script>
	<script type="text/javascript" src="../../plugins/wangEditor/release/wangEditor.min.js"></script>
	<script src="../../js/news/newPost.js"></script>
	<script src="../../js/utils/common.js"></script>
	<script src="../../js/utils/interceptor.js"></script>




	<script type="text/html" id="img">
		<div>
			<img style="height:35px;width:35px;line-height:50px!important;" src="{{d.image}}">
		</div>
	</script>

	<script type="text/html" id="barDemo">
		<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
	</script>


</body>

</html>